#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	const char* a = "abcdwuabcdefg";
	const char* b = "abc";
	int count = 0;
	char* p = strstr(a, b);
	if (p)
	{
		while (p = strstr(p, b), p)
		{
			count++;
			p++;
		}
	}
	printf("%d\n", count);
	return 0;
}